<div class="grid_9">

<?php if($this->session->flashdata('type')): ?>
	<div class="<?php echo $this->session->flashdata('type')?>"><?php echo $this->session->flashdata('msg')?></div>
<?php endif; ?>

<div class="inner-border">
<h6>Add User Level</h6>
	<?php 
		$formAttrib = array('id' => 'addroom', 'class' => 'admin-form');
		$roomCodeAttrib = array('name' => 'code', 'value' => set_value("code"), 'id' => 'code');
		$roomNameAttrib = array('name' => 'name', 'value' => set_value('name'), 'id' => 'name');
		$roomDescriptionAttrib = array('name' => 'description', set_value("description"), 'id' => 'description');
		echo form_open('admin/post_add_room', $formAttrib);
		
	?>
    
    <div class="input-block">
    <?php
		echo form_label('Room Code :', 'code');
		echo form_input($roomCodeAttrib);		
	?>
    </div>
	
    <div class="input-block">
    <?php
		echo form_label('Room Name :', 'name');
		echo form_input($roomNameAttrib);		
	?>
    </div>
    
	<div class="input-block">
    <?php
		echo form_label('Description :', 'description');
		echo form_textarea($roomDescriptionAttrib);	
	?>
    </div>
   
    <div class="input-block" style="clear:both;">
   		<?php echo form_submit('add', 'Add'); ?>
		<a href="<?php echo site_url('admin/manage_rooms') ?>" class="btn">Back</a>	
    </div>

</div>
</div>